# include <bits/stdc++.h>
using namespace std;



int main(){
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n, a[114514], u[114514];
    cin >> n;
    int s = n;
    memset(u, 1, sizeof(u));
    for (int i = 1; i <= n; i++){
        cin >> a[i];

    }
    sort(a + 1, a + n + 1);
    for (int i = 1; i <= n; i++){
        if (a[i] == 0) continue;
        for (int j = i + 1; j <= n; j++){
            if (a[j] > a[i] && u[j] != 0){
                s--;
                a[i] = 0;
                u[j] = 0;
                break;
            }
        }
    }
    cout << s;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
